using System;

namespace ClassEntities
{
    [Serializable]
    public class tblTruongHoc
    {
        private int stt;
        private object logo;
        private string tenTruong;
        private string diachi;
        private string dienthoai;
        private string fax;
        private string email;
        private string mota;
        private string lat;
        private string longs;
        private string enable;
        public tblTruongHoc()
        { }
        public tblTruongHoc(int stt, object logo, string tenTruong, string diachi, string dienthoai, string fax, string email, string mota, string lat, string longs, string enable)
        {
            this.stt = stt;
            this.logo = logo;
            this.tenTruong = tenTruong;
            this.diachi = diachi;
            this.dienthoai = dienthoai;
            this.fax = fax;
            this.email = email;
            this.mota = mota;
            this.lat = lat;
            this.longs = longs;
            this.enable = enable;
        }
        public int Stt
        {
            get { return this.stt; }
            set
            {
                if (value == null)
                    throw new Exception("stt not allow nullvalue.");
                this.stt = value;
            }
        }
        public object Logo
        {
            get { return this.logo; }
            set { this.logo = value; }
        }
        public string TenTruong
        {
            get { return this.tenTruong; }
            set { this.tenTruong = value; }
        }
        public string Diachi
        {
            get { return this.diachi; }
            set { this.diachi = value; }
        }
        public string Dienthoai
        {
            get { return this.dienthoai; }
            set { this.dienthoai = value; }
        }
        public string Fax
        {
            get { return this.fax; }
            set { this.fax = value; }
        }
        public string Email
        {
            get { return this.email; }
            set { this.email = value; }
        }
        public string Mota
        {
            get { return this.mota; }
            set { this.mota = value; }
        }
        public string Lat
        {
            get { return this.lat; }
            set { this.lat = value; }
        }
        public string Longs
        {
            get { return this.longs; }
            set { this.longs = value; }
        }
        public string Enable
        {
            get { return this.enable; }
            set { this.enable = value; }
        }
        public override string ToString()
        {
            return this.stt + "; " + this.logo + "; " + this.tenTruong + "; " + this.diachi + "; " + this.dienthoai + "; " + this.fax + "; " + this.email + "; " + this.mota + "; " + this.lat + "; " + this.longs + "; " + this.enable + "; ";
        }
        public override bool Equals(Object obj)
        {
            tblTruongHoc me = (tblTruongHoc)obj;
            bool ret = this.Stt.Equals(me.Stt);
            return ret;
        }
        public override int GetHashCode()
        {
            return this.Stt.GetHashCode();
        }

    }
}